﻿namespace BlamanticUI.Components;

/// <summary>
/// Rerepsents the child component display as <see cref="Label"/> component.
/// </summary>
[CssClass("labeled")]
public class Labeled : BlazorChildContentComponentBase, IHasUIComponent
{
    /// <summary>
    /// Initializes a new instance of the <see cref="Labeled"/> class.
    /// </summary>
    public Labeled()
    {
    }


    /// <summary>
    /// Gets or sets a value indicating whether child component has <see cref="BlamanticUI.Components.Button"/> component.
    /// </summary>
    [Parameter] public bool Button { get; set; }

    /// <summary>
    /// Gets or sets the layout of <see cref="Label"/> component at left.
    /// </summary>
    [Parameter] [CssClass("left")] public bool Left { get; set; }

    protected override void BuildCssClass(ICssClassBuilder builder)
    {
        builder.Append("button", Button);
    }
}
